package com.customer.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.customer.mall.domain.Product;
import com.customer.mall.domain.vo.ProductVO;
import com.customer.mall.util.ResponseResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author BaiGGG
 * @since 2023-06-25
 */
public interface IProductService extends IService<Product> {

    ResponseResult<Page<ProductVO>> pageProduct(String name, String categoryName, Integer pageNum, Integer pageSize);

    ResponseResult<ProductVO> getProductById(Integer id);

    ResponseResult<String> insertProduct(Product product);

    ResponseResult<String> updateProduct(Product product);
}
